The file replication.do replicate the analysis in 
Rudolph, Lukas and Markus Wagner
"Europe's migration crisis: local contact and out-group hostility", 
forthcoming in European Journal of Political Research. 

For the do-file to work best, we suggest setting up the following structure of files and folders:

Save replication.do on first level.

Then, set up: 

Subfolder "datasources" containing
- master.dta -> treatment analysis for year 2017, necessary for Figures A.1.1 to A.8.2 and Tables A.4.1 to A.8.1
- placebo.dta -> balance and placebo tests for year 2013, necessary for Table A.3.1 and Table A.3.2

Subfolder "figures": 
- such that do-file "replication.do" will save Figures 2 to 5, and Figures A.1.1 to A.8.2 to this subfolder.

Subfolder "tables": 
- such that do-file "replication.do" will save Tables A.3.1 to A.8.1 to this subfolder.

Subfolder "figures": 

The data contained in this Dataverse builds on 
- municipality level data on asylum seeker presence in Austrian municipalities in 2015/16 provided by "österreichischer Gemeindebund"
- municipality level data on population statistics for 2010-2015, provided by Statistics Austria (https://www.statistik.at/)
- municipality level data on federal elections for 2006-2013, provided by the Austrian Federal Elections Officer (https://www.bmi.gv.at/412/Bundeswahlbehoerde.aspx)
- 2017 individual level data from the Austrian National Election Study (Wagner, Markus, Julian Aichholzer, Jakob-Moritz Eberl, Thomas M. Meyer, Nicolai Berk,
Nico Büttner, Hajo Boomgaarden, Sylvia Kritzinger and Wolfgang C. Müller. 2018. AUTNES Online Panel Study 2017 (SUF edition). AUSSDA Dataverse.) 
- 2013 individual level datan from the Austrian National Election Study (Kritzinger, Sylvia, Eva Zeglovits, Julian Aichholzer, Christian Glantschnigg, Konstantin Glinitzer, 
David Johann, Kathrin Thomas and Markus Wagner. 2017. AUTNES Pre- and Post-Panel Study 2013. GESIS Datenarchiv.)
Linkages between municipality level data and municipality level data are based on a random municipality identifier to preserve anonymity of respondents. 

The authors

Contact: lukas.rudolph@gsi.uni-muenchen.de